package ${package.Service};

import ${package.Entity}.${entity};
import java.util.List;
/**
* <p>
    * ${table.comment!} 服务类
    * </p>
*
* @classname: ${table.serviceName}
* @author: ${author}
* @since: ${date}
* @description: ${table.comment!} 服务类
* @towork: none
* @version: 1.0.0
*/
public interface ${table.serviceName}{

/**
* ${table.comment!} 列表查询
*
* @param ${entity?uncap_first} ${table.comment!}实体类
* @return ${entity?uncap_first}集合
*/
List<${entity}> selectList(${entity} ${entity?uncap_first});

/**
* ${table.comment!} 根据id查询数据
*
* @param id 主键id
* @return ${entity} 指定id的${table.comment!}数据
*/
${entity} getById( Long id);

/**
* ${table.comment!} 新增
*
* @param ${entity?uncap_first} ${table.comment!}实体类
* @return 受影响行数
*/
int add(${entity} ${entity?uncap_first});

/**
* ${table.comment!} 更新
*
* @param ${entity?uncap_first} ${table.comment!}实体类
* @return 受影响行数
*/
int update(${entity} ${entity?uncap_first});

/**
* ${table.comment!} 根据id删除数据
*
* @param id 主键id
* @return 受影响行数
*/
int delete( Long id);

}